/**
* ClassExplorerExample by Denis Kolyako. July 30, 2007. Last update January 12, 2008.
* Visit http://dev.etcs.ru for documentation, updates and more free code.
*
* You may distribute this class freely, provided it is not modified in any way (including
* removing this header or changing the package path).
* 
*
* Please contact etc[at]mail.ru prior to distributing modified versions of this class.
*/
package {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLRequest;
	
	import ru.etcs.utils.ClassExplorer;

	public class ClassExplorerExample extends Sprite {
		public function ClassExplorerExample() {
			super();
			var explorer:ClassExplorer = new ClassExplorer();
			var request:URLRequest = new URLRequest('thief.swf');
			explorer.addEventListener(Event.COMPLETE, this.completeHandler);	
			explorer.load(request);
		}
		
		private function completeHandler(event:Event):void {
			var explorer:ClassExplorer = event.target as ClassExplorer;
			trace(explorer.getDefinitionInfo().toXMLString());	
		}
	}
}
